package com.ahncnk.powermonitor.admin.auth.domain.dto;

import com.ahncnk.powermonitor.admin.users.domain.UserPrincipal;
import com.auth0.jwt.interfaces.DecodedJWT;

/**
 * JwtVerifyResult
 *
 * @author lipei
 */
public class JwtVerifyResult {
    private final DecodedJWT decodedJWT;
    private final UserPrincipal userPrincipal;

    public JwtVerifyResult(DecodedJWT decodedJWT, UserPrincipal userPrincipal) {
        this.decodedJWT = decodedJWT;
        this.userPrincipal = userPrincipal;
    }

    public DecodedJWT getDecodedJWT() {
        return decodedJWT;
    }

    public UserPrincipal getUserPrincipal() {
        return userPrincipal;
    }
}
